#ifndef __USART1_H
#define __USART1_H

#ifdef __cplusplus
extern "C"
{
#endif

#include "stm32f10x.h"

#define USART_BUFFER_SIZE       8

struct USART_Buffer
{
    uint8_t *Data;
    uint32_t Head;
    uint32_t End;
};

extern struct USART_Buffer USART1_RxBuf;

void USART1_Init(void);

#ifdef __cplusplus
}
#endif

#endif // __USART1_H
